<!doctype html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta charset="gb2312">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=dege" />
    <meta name="format-detection" content="telephone=no" />
    <title>知了</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    <link rel="stylesheet" href="css/swiper.min.css" />
    <link rel="stylesheet" href="css/animate.min.css" />
    <link href="images/favicon.ico" rel="icon" type="images/x-icon">
    <link rel="stylesheet" href="css/reset.css">
    <link rel="stylesheet" href="css/headfoot.css" />
    <link rel="stylesheet" href="css/dyf.css">
    <script src="js/jquery-1.11.3.min.js"></script>
    <script src="js/swiper.jquery.min.js"></script>
    <script src="js/index.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/wow.min.js"></script>
    <!--[if lt IE 9]>
    <script src="js/html5shiv.min.js"></script>
    <script src="js/respond.min.js"></script>
    <![endif]-->
    <script>
        if (!(/msie [6|7|8|9]/i.test(navigator.userAgent))) {
            new WOW().init();
        }
    </script>
</head>

<body>
    <div class="return">
        <div class="return-title">
            <div class="in">
                <h1>重置密码</h1>
            </div>
        </div>
        <div class="in">
            <div class="return-conts">
                <div class="step">
                    <ul>
                        <li class="col-xs-4 on">
                            <span class="num"><em class="f-r5"></em><i>1</i></span>
                            <span class="line_bg lbg-r"></span>
                            <p class="lbg-txt">验证身份</p>
                        </li>
                        <li class="col-xs-4 on">
                            <span class="num"><em class="f-r5"></em><i>2</i></span>
                            <span class="line_bg lbg-l"></span>
                            <span class="line_bg lbg-r"></span>
                            <p class="lbg-txt">重置登录密码</p>
                        </li>
                        <li class="col-xs-4">
                            <span class="num"><em class="f-r5"></em><i>3</i></span>
                            <span class="line_bg lbg-l"></span>
                            <p class="lbg-txt">重置成功</p>
                        </li>
                    </ul>
                </div>
                <div class="return-cz">
                    <ul>
                        <li>
                            <label for="">新密码：</label> <input name="par" type="password">
                        </li>
                        <li>
                            <label for="">确认密码：</label> <input name="par1" type="password">
                        </li>
                        <li class="return-btn">
                            <a href="#" class="queding">确认</a>
                        </li>
                        <script type="text/javascript">
                            $(".queding").click(function (e) {
                                e.preventDefault();
                                var par = $("[name = 'par']").val();
                                var par1 = $("[name = 'par1']").val();
                                if (par == "") {
                                    alert("新密码不能为空！");
                                    return false;
                                }
                                if (par1 == "") {
                                    alert("确认密码不能为空！");
                                    return false;
                                }
                                if (par1 != par) {
                                    alert("两次密码不一样！");
                                    return false;
                                }
                                $.ajax({
                                    cache: "FALSE",
                                    type: "POST",
                                    url: "?c=h&a=zzmm",
                                    dataType: "json",
                                    data: { "par": par },
                                    timeout: 15000,
                                    success: function (json) {
                                        if (json.success == 0) {
                                            // alert("请录 ! ");
                                            window.location.href = '?c=h&a=zzmmsanbu';
                                            return true;
                                        } else {
                                            alert(json.msg);
                                            return false;
                                        }
                                    } //success
                                }); //ajax


                            });

                        </script>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</body>

</html>